package com.wkbb.basic.service;

import com.wkbb.basic.model.OrgStructure;
import com.wkbb.common.base.BaseService;

import java.util.List;
import java.util.Map;

/**
 * @author lizhichao
 * @date 2019/8/9
 * @description
 */
public interface OrgStructureService extends BaseService<OrgStructure> {
    /**
     * 初始化组织架构树形结构
     * @param parms
     * @return
     * @throws Exception
     */
    List<OrgStructure> initOrgStructureTreeList(Map<String, Object> parms) throws Exception;

    /**
     * 查询指定节点树形结构
     * @param parms
     * @return
     * @throws Exception
     */
    List<OrgStructure> getOrgStructureTreeList(Map<String, Object> parms) throws Exception;

    /**
     * 批量删除组织架构节点及其子节点
     * @param parentId
     * @param orgId
     * @throws Exception
     */
    void deleteOrgStructureBatch(Long parentId, Long orgId) throws Exception;
}
